obj-m+=dht11_drv.o

KERN_DIR=/home/gec/linux-2.6.35.7-gec-v3.0-gt110
CROSS = arm-none-linux-gnueabi
CC = $(CROSS)-gcc

PWD:=$(shell pwd)

modules:
	$(MAKE) -C $(KERN_DIR) M=$(PWD) modules
	cp dht11_drv.ko ../../bin

demo:
	$(CC) test.c -o dhtdemo
	cp dhtdemo ../../bin

clean:
	$(MAKE) -C $(KERN_DIR) M=$(PWD) clean
